@import 'mo/style/common';

#{$sidebar} {
    background-color: var(--sideBar-background);
    border-color: var(--sideBar-border);
    border-right: 1px solid var(--sideBar-border);
    color: var(--sideBar-foreground);
    height: 100%;
    left: 0;
    outline-color: var(--sideBar-border);
    position: relative;
    width: 100%;

    &-explorer {
        height: 100%;
    }

    &__pane {
        height: 100%;
        position: absolute;
        top: 0;
        width: 100%;
    }

    &__header {
        align-items: center;

        box-sizing: border-box;
        display: flex;
        height: 35px;
        overflow: hidden;
        padding-left: 8px;
        padding-right: 8px;
        position: relative;
    }

    &__title {
        line-height: 35px;
        overflow: hidden;
        padding-left: 12px;
        text-overflow: ellipsis;
        white-space: nowrap;

        h2 {
            color: var(--sideBarTitle-foreground);
            cursor: default;
            font-size: 11px;
            font-weight: normal;
            margin: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            text-transform: uppercase;
            white-space: nowrap;
        }
    }

    &__content {
        bottom: 0;
        height: calc(100% - 35px);
        left: 0;
        position: relative;
        right: 0;
        top: 0;
    }

    &__toolbar {
        flex: 1;
        padding-left: 5px;
    }

    #{$collapse}__header {
        background-color: var(--sideBarSectionHeader-background);
        color: var(--sideBarSectionHeader-foreground);
    }
}
